import sys,os,pickle,numpy as np
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
import requests,time,json,glob,re
from protocol.decorators import edp_service, instant
@edp_service
class Connector:
    name = "stimulus-connector"
    desc = "stimulus connector"
    tasks = [
        'get_freq: FilePath->Freq',
        'get_position: (FilePath, [Int])->([Int], [Int])',
        'input_thresh: FilePath->(FilePath, ?Int)',
        'default_thresh: FilePath->(FilePath, ?Int)',
        'stim_merge: (Bool, ?([Int], [Int]), ?([Int], [Int]), Freq)->([Int],[Int],Freq)',
        'get_dual: FilePath->Bool',
        'init_filepath: FilePath->(FilePath, (FilePath, FilePath), (FilePath, FilePath), FilePath)',
        'single_pos_file: FilePath->(Bool, (FilePath, (FilePath, Void)), Void, FilePath)'
    ]
    def get_freq(self, inputs):
        pass
    def get_position(self, inputs):
        pass
    def input_thresh(self, inputs):
        pass
    def default_thresh(self, inputs):
        pass
    def stim_merge(self, inputs):
        pass
    def get_dual(self, inputs):
        pass
    def init_filepath(self, inputs):
        pass
    def single_pos_file(self, inputs):
        pass

if __name__ == '__main__':
    Connector.app.run(port=5070)